# #redis配置
# REDIS_URL = "redis://localhost:12788/0"
# #数据库配置
# HOSTNAME = '127.0.0.1'
# DATABASE = 'flask_app'
# PORT = 3385
# USERNAME = 'root'
# PASSWORD = 'Hyj@890!'       #密码含有特殊字符，使用urlquote进行处理
from urllib.parse import quote_plus as urlquote
class Config:
    SQLALCHEMY_DATABASE_URI =f'mysql+pymysql://root:{urlquote("Hyj@890!")}@localhost:3385/flask_app'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    REDIS_URL ='redis://localhost:12788/0'
    INTERCEPTOR_WHITELIST=["/getCaptcha","/login"]
